﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="WEB.APP.Login" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Criteria Based Project Allocation System </title>
    <script type="text/javascript" language="javascript">
        if (parent.logout != null) {
            parent.logout();
        }
    </script>
    <style type="text/css">
        #Panel2, #x-form-el-txtUsername
        {
            margin-top: 7px;
            
        }
    </style>
</head>
<body>
    <div style="background-color: #25589D;padding:5px;color: White;font-family: Arial;">
        <dib style="float: right;">
            <img height="50" src="https://myuwsauth.uws.edu.au/livery08/images/appslivery/logo-part.gif" />
        </dib>
        Bringing knowledge to life<br />
        <span style="font-size: large;"><b>Criteria Based Project Allocation System</b></span>
        <div style="clear:both;"></div>
    </div>
    <div style="background-color: #6597C7;padding:5px;color: White;font-family: Arial;margin: 0 -2 0 -2;">
        <b>School of Computing and Mathematics</b><br />
        MyUWS Professional Experience: 300579
    </div>
    <form id="Form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
        <Listeners>
            <%-- <DocumentReady Handler="txtUsername.focus();" />--%>
        </Listeners>
    </ext:ResourceManager>
    <ext:Window ID="Window1" runat="server" Closable="false" Resizable="false" Height="198"
        Icon="Lock" Title="Criteria Based Project Allocation System" Draggable="false" Width="600" Padding="5"
        Layout="Form">
        <Items>
            <ext:Panel ID="Panel1" runat="server" Border="false" BodyStyle="background-color:#DFE8F6;" Layout="HBoxLayout" AutoHeight="true">
                <Items>
                    <ext:FieldSet ID="Panel2" runat="server" BodyStyle="background-color:#DFE8F6;" Layout="Form" Flex="1" LabelWidth="60" Height="150">
                        <Items>
                            <ext:TextField ID="txtUsername" runat="server" FieldLabel="Username" AllowBlank="false"
                                BlankText="Please enter a username" AnchorHorizontal="100%" />
                            <ext:TextField ID="txtPassword" runat="server" InputType="Password" FieldLabel="Password"
                                AllowBlank="false" BlankText="Please enter a password" AnchorHorizontal="100%">
                                <DirectEvents>
                                    <SpecialKey Before="return e.getKey() == Ext.EventObject.ENTER;" OnEvent="btnLogin_Click">
                                        <EventMask ShowMask="true" Msg="Checking..." MinDelay="100" />
                                    </SpecialKey>
                                </DirectEvents>
                            </ext:TextField>
                            <ext:Checkbox ID="chkRemeber" runat="server" BoxLabel="Remember Me?" Checked="true" />
                            <ext:Label ID="lblError" Text="" Hidden="true" Icon="Exclamation" IconAlign="Left"
                                runat="server" />
                        </Items>
                        <Buttons>
                            <ext:Button ID="btnLogin" runat="server" Text="Login" Icon="Accept">
                                <Listeners>
                                    <Click Handler="
                                            if (!#{txtUsername}.validate() || !#{txtPassword}.validate()) {
                                                Ext.Msg.alert('Notification','Please enter your username and password');
                                                return false; 
                                            }" />
                                </Listeners>
                                <DirectEvents>
                                    <Click OnEvent="btnLogin_Click">
                                        <EventMask ShowMask="true" Msg="Checking..." MinDelay="100" />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                        </Buttons>
                    </ext:FieldSet>
                    <ext:FieldSet runat="server" Flex="1" Margins="0 0 0 5" Title="Problems logging in?" Height="157">
                        <Content>
                            <br />
                            Student Login: Usename is Student ID and Password is date of birth in format month/day/year(without"/")<br /><br />
                            If you haven't already done so, please enroll into the Professional Experience Unit to access the CBAS. If you have, and are still having problems, check that your password hasn't expired and reset or if you've forgotten your password or need to reset it please contact the System Administrator.<br /><br />
                            For any other assistance with logging in the system, please contact the System Administrator on<br />
                            (02) 9876 5432 or email <a href="mailto:px.support@uws.edu.au">px.support@uws.edu.au</a>
                        </Content>
                    </ext:FieldSet>
                </Items>
            </ext:Panel>
        </Items>
        <Buttons>
        </Buttons>
    </ext:Window>
    </form>
</body>
</html>
